package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * BreakTrain generated by hbm2java
 */
@Entity
@Table(name = "break_train")
public class BreakTrain implements java.io.Serializable {

	private Long id;
	private BreakType breakType;
	private String breakName;
	private String breakContent;
	private Date breakBeginDate;
	private Date breakEndDate;
	private Date createDate;
	private Long createUserId;
	private byte status;
	private Date recoverDate;
	private Date startDate;
	private long studentId;
	private Integer breakDay;
	private int studyNum;

	public BreakTrain() {
	}

	public BreakTrain(byte status, long studentId, int studyNum) {
		this.status = status;
		this.studentId = studentId;
		this.studyNum = studyNum;
	}

	public BreakTrain(BreakType breakType, String breakName,
			String breakContent, Date breakBeginDate, Date breakEndDate,
			Date createDate, Long createUserId, byte status, Date recoverDate,
			Date startDate, long studentId, Integer breakDay, int studyNum) {
		this.breakType = breakType;
		this.breakName = breakName;
		this.breakContent = breakContent;
		this.breakBeginDate = breakBeginDate;
		this.breakEndDate = breakEndDate;
		this.createDate = createDate;
		this.createUserId = createUserId;
		this.status = status;
		this.recoverDate = recoverDate;
		this.startDate = startDate;
		this.studentId = studentId;
		this.breakDay = breakDay;
		this.studyNum = studyNum;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "BREAK_TYPE_ID")
	public BreakType getBreakType() {
		return this.breakType;
	}

	public void setBreakType(BreakType breakType) {
		this.breakType = breakType;
	}

	@Column(name = "BREAK_NAME", length = 200)
	public String getBreakName() {
		return this.breakName;
	}

	public void setBreakName(String breakName) {
		this.breakName = breakName;
	}

	@Column(name = "BREAK_CONTENT", length = 65535)
	public String getBreakContent() {
		return this.breakContent;
	}

	public void setBreakContent(String breakContent) {
		this.breakContent = breakContent;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BREAK_BEGIN_DATE", length = 19)
	public Date getBreakBeginDate() {
		return this.breakBeginDate;
	}

	public void setBreakBeginDate(Date breakBeginDate) {
		this.breakBeginDate = breakBeginDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BREAK_END_DATE", length = 19)
	public Date getBreakEndDate() {
		return this.breakEndDate;
	}

	public void setBreakEndDate(Date breakEndDate) {
		this.breakEndDate = breakEndDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE", length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "CREATE_USER_ID")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "STATUS", nullable = false)
	public byte getStatus() {
		return this.status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "RECOVER_DATE", length = 19)
	public Date getRecoverDate() {
		return this.recoverDate;
	}

	public void setRecoverDate(Date recoverDate) {
		this.recoverDate = recoverDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_DATE", length = 19)
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Column(name = "STUDENT_ID", nullable = false)
	public long getStudentId() {
		return this.studentId;
	}

	public void setStudentId(long studentId) {
		this.studentId = studentId;
	}

	@Column(name = "BREAK_DAY")
	public Integer getBreakDay() {
		return this.breakDay;
	}

	public void setBreakDay(Integer breakDay) {
		this.breakDay = breakDay;
	}

	@Column(name = "STUDY_NUM", nullable = false)
	public int getStudyNum() {
		return this.studyNum;
	}

	public void setStudyNum(int studyNum) {
		this.studyNum = studyNum;
	}

}
